//
//  main.m
//  Demo0005
//
//  Created by zTercel on 12-12-31.
//  Copyright (c) 2012年 zTercel. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Triangle.h"
#import "Rectangle.h"

int main(int argc, const char * argv[])
{
    @autoreleasepool {
        Shap* shap = [[Shap alloc] init];
        NSLog(@"-----------shap output----------------");
        [shap setSideColor: 0x00FF00FF];
        [shap setBackgoundColor: 0x00FFFF00];
        [shap print];
    
        NSLog(@"-----------rectangle output-----------");
        Rectangle* rectangle = [[Rectangle alloc] init];
        [rectangle setSideColor: 0x00EE00EE];
        [rectangle setBackgoundColor: 0x00EEEE00];
        [rectangle print];
        [rectangle setSide: 10 height: 30];
        NSLog(@"rectangle area: %i permeter: %i", [rectangle area], [rectangle perimeter]);
        
        
        NSLog(@"-----------rectangle output-----------");
        Triangle* triangle = [Triangle new];
        [triangle setSideColor: 0x00DD00DD];
        [triangle setBackgoundColor: 0x00DDDD00];
        [triangle print];
        [triangle setHight: 8];
        [triangle setSide: 10 bSide: 30 cSide: 25];
        NSLog(@"triangle area: %i permeter: %i", [triangle area], [triangle perimeter]);
        
        
    }
    return 0;
}

